package com.rayenterprise.kms.events;

import com.google.gwt.event.shared.GwtEvent;
import com.rayenterprise.kms.widgets.AbstractCustomNode;

public class AfterHolderNodeChangeEvent extends
		GwtEvent<AfterHolderNodeChangeEventHandler> {

	public static final GwtEvent.Type<AfterHolderNodeChangeEventHandler> TYPE = 
		new GwtEvent.Type<AfterHolderNodeChangeEventHandler>();
	
	public AfterHolderNodeChangeEvent(AbstractCustomNode node){
		this.node = node;
	}

	@Override
	protected void dispatch(AfterHolderNodeChangeEventHandler handler) {
		// TODO Auto-generated method stub
		handler.holderNodeChange(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AfterHolderNodeChangeEventHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	private AbstractCustomNode node;

	public AbstractCustomNode getNode() {
		return node;
	}

	public void setNode(AbstractCustomNode node) {
		this.node = node;
	}
}
